import { GameContext } from "@sapi-game/gameContext";
import { PlayerGroup } from "@sapi-game/gamePlayer/playerGroup";
import { PixelPartyMap } from "./map";
import { pixelPartyPlayer } from "./module";

export class pixelPartyContext extends GameContext {
    readonly players: PlayerGroup<pixelPartyPlayer>;
    readonly map: PixelPartyMap;
    round: number = 0;
    winner?: pixelPartyPlayer;

    constructor(
        players: PlayerGroup<pixelPartyPlayer>,
        config: { map: PixelPartyMap }
    ) {
        super();
        this.players = players;
        this.map = config.map;
    }
}
